/*
 * xDesk 2 Desktop 0.1
 * Author: Sergi Ramon Ballart
 * 
 * Modified from qWikiOffice Desktop 1.0 by Murdock Technologies, Inc.
 */
 
Ext.namespace('Ext.ux','xDesk');
 
xDesk.App = new Ext.app.App({
   init : function(){
      Ext.BLANK_IMAGE_URL = '<?=BASEURL?>resources/images/default/s.gif';
      Ext.QuickTips.init();
   },
 
   /**
    * The member's name and group name for this session.
    */
   memberInfo: {
      name: 'xDesk 2 Developer',
      group: 'Developers'
   },
 
   /**
    * An array of the module definitions.
    * The definitions are used until the module is loaded on demand.
    */
   //modules: [ {"id":"demo-accordion","type":"demo/accordion","className":"QoDesk.AccordionWindow","launcher":{"iconCls":"acc-icon","shortcutIconCls":"demo-acc-shortcut","text":"Accordion Window","tooltip":"<b>Accordion Window<\/b><br \/>A window with an accordion layout"},"launcherPaths":{"startmenu":"\/"}},{"id":"demo-bogus","type":"demo/bogus","className":"QoDesk.BogusWindow","launcher":{"iconCls":"bogus-icon","shortcutIconCls":"demo-bogus-shortcut","text":"Bogus Window","tooltip":"<b>Bogus Window<\/b><br \/>A bogus window"},"launcherPaths":{"startmenu":"\/Bogus Menu\/Bogus Sub Menu"}},{"id":"demo-grid","type":"demo/grid","className":"QoDesk.GridWindow","launcher":{"iconCls":"grid-icon","shortcutIconCls":"demo-grid-shortcut","text":"Grid Window","tooltip":"<b>Grid Window<\/b><br \/>A grid window"},"launcherPaths":{"startmenu":"\/"}},{"id":"demo-layout","type":"demo/layout","className":"QoDesk.LayoutWindow","launcher":{"iconCls":"layout-icon","shortcutIconCls":"demo-layout-shortcut","text":"Layout Window","tooltip":"<b>Layout Window<\/b><br \/>A layout window"},"launcherPaths":{"startmenu":"\/"}},{"id":"demo-tab","type":"demo/tab","className":"QoDesk.TabWindow","launcher":{"iconCls":"tab-icon","shortcutIconCls":"demo-tab-shortcut","text":"Tab Window","tooltip":"<b>Tab Window<\/b><br \/>A tab window"},"launcherPaths":{"startmenu":"\/"}},{"id":"qo-admin","type":"system/administration","className":"QoDesk.QoAdmin","launcher":{"iconCls":"qo-admin-icon","shortcutIconCls":"qo-admin-shortcut-icon","text":"QO Admin","tooltip":"<b>QO Admin<\/b><br \/>Allows system administration"},"launcherPaths":{"startmenu":"\/Admin"}},{"id":"qo-preferences","type":"system/preferences","className":"QoDesk.QoPreferences","launcher":{"iconCls":"qo-pref-icon","shortcutIconCls":"qo-pref-shortcut-icon","text":"QO Preferences","tooltip":"<b>QO Preferences<\/b><br \/>Allows you to modify your desktop"},"launcherPaths":{"contextmenu":"\/","startmenutool":"\/"}},{"id":"qo-profile","type":"user/profile","className":"QoDesk.QoProfile","launcher":{"iconCls":"qo-profile-icon","shortcutIconCls":"qo-profile-shortcut-icon","text":"Profile","tooltip":"<b>Profile<\/b><br \/>Allows user profile administration"},"launcherPaths":{"contextmenu":"\/","startmenutool":"\/"}} ],
 	modules: [ {"id":"demo-accordion","type":"demo/accordion","className":"xDesk.AccordionWindow","launcher":{"iconCls":"acc-icon","shortcutIconCls":"demo-acc-shortcut","text":"Accordion Window","tooltip":"<b>Accordion Window<\/b><br \/>A window with an accordion layout"},"launcherPaths":{"startmenu":"\/"}} ],	
   /**
     * The members privileges.
     */
   //privileges: {"demo-accordion":[],"demo-bogus":[],"demo-grid":[],"demo-layout":[],"demo-tab":[],"qo-admin":["addGroup","addMember","addPrivilege","approveSignupsToGroup","deleteGroup","deleteMember","deletePrivilege","denySignups","editGroup","editGroupPrivilege","editMember","editMembersGroups","editPrivilege","editPrivilegeModules","viewGroups","viewGroupPrivileges","viewMembers","viewMemberGroups","viewPrivileges","viewPrivilegeModules","viewSignups"],"qo-mail":["loadMemberFolders","addMemberFolder"],"qo-preferences":["saveAppearance","saveAutorun","saveBackground","saveQuickstart","saveShortcut","viewThemes","viewWallpapers"],"qo-profile":["loadProfile","saveProfile","savePwd"]},
   privileges: {},
 
   /**
    * The desktop config object.
    */
   desktopConfig: {
      appearance: {"fontColor":"FDFDFD","taskbarTransparency":100,"theme":{"id":2,"name":"Gray","file":"<?=addslashes(BASEURL)?>resources\/css\/xtheme-gray.css"}},
      background: {"color":"f9f9f9","wallpaperPosition":"center","wallpaper":{"id":15,"name":"xDesk","file":"<?=addslashes(BASEURL)?>resources\/wallpapers\/xdesk2.jpg"}},
      //launchers: {"shortcut":["demo-layout","demo-grid","demo-bogus","demo-accordion","demo-tab"],"quickstart":["demo-grid","demo-layout"]},
	  launchers: {"shortcut":["demo-accordion"],"quickstart":[]},
      taskbarConfig: {
         buttonScale: 'large',
         position: 'bottom',
         quickstartConfig: {
            width: 60
         },
         startButtonConfig: {
            iconCls: 'icon-qwikioffice',
            text: 'Start'
         },
         startMenuConfig: {
            iconCls: 'icon-user-48',
            title: 'xDesk 2 Developer',
            width: 320
         }
      }
   }
});